Page({
  data: {
    active: 0,
    userStatus: {}
  },
  loadData () {
    const userStatus = wx.getStorageSync('userStatus')
    this.setData({ userStatus })
  },
  onChange ({ detail }) { // 切换路由
    if (detail === 1) {
      wx.redirectTo({ url: '/pages/individual/work/me/me' })
    }
  },
  computer () { //公积金计算器
    wx.navigateTo({ url: '/pages/individual/work/computer/computer' })
  },
  portal () { // 跳派遣门户咨询
    wx.navigateTo({ url: '/pages/webview/webview?url=/dispatch-portal-mobile/#/home' })
  },
  onLoad () {
    this.loadData()
  }
})